<?php if ($this->survey['id_user'] == $this->social->getIdUser()):?>
	or <a class="action_link" href="javascript:isPageInstalled($('#id_page').val(), '$(\'#publish_<?php echo $this->survey['id'];?>\').submit()');"><?php echo $this->translate('PUBLISH_TO_PAGE');?></a>			
	<select name='id_page' id='id_page'>			
	<?php if (!empty($this->pages)):?>
		<?php foreach ($this->pages as $page):?>
			<option value='<?php echo $page['id'];?>'><?php echo $page['name'];?></option>	
		<?php endforeach;?>		
	<?php endif;?>
	</select>
<?php endif;?>